<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
<!--
	$(function(){
		var uid = "${param.uid}";
		if(uid) {
			$.ajax({
			  url: "${ctxPath }/topic/ajax/6",
			  data:{uid:uid},
			  dataType: 'json',
			  success: function(data) {
			  	$("form[name='subfrm']").find("input,select,textarea").each(function() {
			  		if($(this).attr("field")) {
			  			$(this).val(data[$(this).attr("field")]);
			  		}
			  	});
			  	$("form[name='subfrm']").find("span").each(function() {
			  		if($(this).attr("field")) {
			  			$(this).text(data[$(this).attr("field")]);
			  		}
			  	})
			  }
			});		
		}
	});
	function dialogAjaxDone(json){
      DWZ.ajaxDone(json);
      if (json.statusCode == DWZ.statusCode.ok){
            if (json.navTabId){
                  navTab.reload(json.forwardUrl, {}, json.navTabId);
            }
            $.pdialog.closeCurrent();
      }
	}
	
//-->
</script>
<div class="pageContent">
	<form name="subfrm" method="post" action="${ctxPath }/topic/${param.uid == null ? 7 : 8}" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>标题：</dt>
				<dd>
					<input type="text" name="title" size="30" maxlength="20" class="required"  field="TITLE"/>
					<span class="info">class="required"</span>
				</dd>
			</dl>
			<dl>
				<dt>权限ID：</dt>
				<dd>
					<input type="text" name="privid" size="30" class="required" field="PRIV_ID"/>
					<span class="info">class="required"</span>  
				</dd>
			</dl>
			<dl>
				<dt>调用SERVICE：</dt>
				<dd> 
					<input type="text" name="servicename" size="30" class="required" field="SERVICE_NAME"/>
					<span class="info">class="required alphanumeric" minlength="6" maxlength="20"</span>
				</dd>
			</dl>
			<dl>
				<dt>返回页面：</dt>
				<dd> 
					<input type="text" name="page" size="30" field="PAGE"/>
					<span class="info">class="required alphanumeric" minlength="6" maxlength="20"</span>
				</dd>
			</dl>
			<dl>
				<dt>验证信息：</dt>
				<dd>
					<textarea  rows="4" cols="30" name="validation" field="VALIDATION"></textarea>
					<span class="info">唯一性验证input添加属性：remote="xxxUrl"</span>
				</dd>
			</dl>
			<dl>
				<dt>EXEC_SQL：</dt>
				<dd>
					<textarea  rows="4" cols="30" name="execsql" field="EXEC_SQL"></textarea>
					<span class="info">唯一性验证input添加属性：remote="xxxUrl"</span>
				</dd>
			</dl>
			<dl>
				<dt>备注：</dt>
				<dd>
					<textarea  rows="4" cols="30" name="remark" field="REMARK"></textarea>
					<span class="info">唯一性验证input添加属性：remote="xxxUrl"</span>
				</dd>
			</dl>
			<div class="divider"></div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" >提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

